<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改员工</title>
</head>
<body>
<h1>修改员工</h1>
<form th:action="@{/oper/edit}" method="post">
    <input  name="eId" th:value="${depEmp.getEId()}">
    <div>
        <label>e_id</label><br>
        <input type="text" name="eId" th:value="${depEmp.getEId()}">
    </div>
    <div>
        <label>e_name</label><br>
        <input type="text" name="eName" th:value="${depEmp.getEName()}">
    </div>
    <div>
        <label>e_email</label><br>
        <input type="text" name="eEmail" th:value="${depEmp.getEEmail()}">
    </div>
    <div>
        <input type="radio" name="eGender"value="1" th:checked="${depEmp.getEGender()}==1">
        <label>男</label>
        <input type="radio" name="eGender" value="0" th:checked="${depEmp.getEGender()}==0">
        <label>女</label>
    </div>
    <div>
        <label>e_birth</label><br>
        <input type="text" name="eBirth" th:value="${#dates.format(depEmp.getEBirth(),'yyyy-MM-dd')}">
    </div>
    <div>
        <label>e_d_id</label><br>
        <select name="eDId" >
            <option th:each="emp:${depEmps}" th:text="${emp.getDName()}" th:value="${emp.getEDId()}" th:selected="${emp.getDName()}"></option>
        </select>
    </div>
    <div>
        <input type="submit" value="提交">
    </div>
</form>
</body>
</html>